<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jstl/core" 
	xmlns:h="http://java.sun.com/jsf/html" 
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:rich="http://richfaces.ajax4jsf.org/rich">
	
	<c:forEach items="#{menubar.menus}" var="menu">
		<rich:dropDownMenu
			value="#{menu.label}"
			rendered="#{menu.rendered}"
			disabled="#{menu.disabled}">
			<c:forEach items="#{menu.children}" var="item">
				<rich:menuItem
					rendered="#{item.rendered}"
					disabled="#{item.disabled}" 
					submitMode="none">
					<s:link 
						includePageParams="false"
						propagation="none"
						view="#{item.viewId}">
						<h:outputText value="#{item.label}" />
					</s:link>
					<!-- 
					<h:outputLink 
						value="#{item.viewId}">
						<h:outputText value="#{item.label}" />
					</h:outputLink>

						propagation="#{item.conversationPropagation}"
					-->
				</rich:menuItem>
			</c:forEach>
		</rich:dropDownMenu>
	</c:forEach>

	<ui:remove> 
	<!-- recursion 4 nested menu groups -->
	</ui:remove>

</ui:composition>